package com.wd.tech.contracts;

import android.content.Context;

import java.util.Map;

/**
 * date:2020/7/2
 * author:王成虎(13671)
 * month:七月
 * function:
 */
public interface Contract {

    //Model
    interface IModel{
        //查询banner
        void ModelGetXBannerInfo(String url, Class cls, Contract.ICallBack callBack);
        void ModelGetNewsShow(String url, Map<String ,Object>map,Class cls, Contract.ICallBack callBack);
    }

    //接口回调
    interface  ICallBack<T>{
        void onSucces(T t);
        void onError(String error);
    }
    //View
    interface  IView<T>{
        void onSucces(T t);
        void onError(String error);
    }
    //Presenter
    //接口回调
    interface  IPresenter{
        //查询banner
        void PresenterGetXBannerInfo(String url, Class cls);
        void PresenterGetNewsShow(String url, Map<String ,Object>map,Class cls);

    }

}
